<template>
  <div>
    <h1>$event</h1>
    <a v-on:click="one"
       v-bind:href="url">阻止去百度</a>
    <br>
    <a href="http://www.xiaomi.com"
       @click="two(10, $event)">去小米</a>
  </div>
</template>

<script>
export default {
  data () {
    return {
      url: 'http://www.baidu.com'
    }
  },
  methods: {
    one (e) {
      e.preventDefault();
    },
    two (num, e) {
      console.log(num);
      e.preventDefault()
    }
  }
}
</script>

<style>
</style>